package com.hxzy.mapper;

import com.hxzy.entity.AddressBook;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

/**
* @author 11452
* @description 针对表【address_book(地址管理)】的数据库操作Mapper
* @createDate 2023-08-28 11:54:55
* @Entity com.hxzy.entity.AddressBook
*/
public interface AddressBookMapper extends BaseMapper<AddressBook> {

    @Update(value = "update address_book set is_default='1',update_time=now() where user_id=#{userId}")
    long cancelDefaultAddress(Integer userId);
}




